import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import store from './store'
import router from './router'
import './router/permission' //路由权限管理

// 引入全局样式
import './styles/reset.css'

// 引入vant
import './plugins/vantPlugin'
import './styles/resetVant.scss'



//将axios挂载在vue原型链上
Vue.prototype.$axios = axios;

//全局过滤器
Vue.filter('toPercent', function(num){
	if(num === undefined){
		return ''
	}
	if(num<1){
		return (num*100).toFixed(1) + '%'
	}else{
		return num + '%'
	}
	 
})

new Vue({
	el:'#app',
	router,
	store,
	render:h=>h(App)
})

